package com.example.bluejumplib;


import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import android.widget.Toast;

import androidx.appcompat.app.AppCompatActivity;


public class UsbAttachActivity extends AppCompatActivity {

    private static final String TAG = "UsbAttachActivity";


    private Handler handler;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_attach);

    }

    @Override
    protected void onResume() {
        super.onResume();
        Log.i("MainActivity", "UsbAttachActivity onResume: ");
//        Toast.makeText(this, "start connect usb ", Toast.LENGTH_SHORT).show();
//        handler = new Handler(getMainLooper());
//        handler.postDelayed(new Runnable() {
//                                @Override
//                                public void run() {
//                                    finish();
//                                }
//                            },
//                5000);
        finish();

    }

    @Override
    protected void onPause() {
        super.onPause();
        Log.i("MainActivity", "UsbAttachActivity onPause: ");
//        handler.removeCallbacksAndMessages(null);
//        handler=null;
    }

    @Override
    public void onBackPressed() {
        super.onBackPressed();
    }
}
